@import './variable.less';

.house_detail {

  .container {
    padding-top: 20px;
    padding-bottom: 20px;

    .title {
      font-size: 30px;
      color: #333333;
      height: 30px;
      line-height: 1;
      font-weight: bold;
      margin-bottom: 30px;
    }

    .first {
      margin-bottom: 40px;

      .detail {
        width: 100%;

        // 图片展示盒子
        .img-box {
          width: 800px;
          height: 550px;

          .el-image {
            // active-img
            height: 450px;
            width: 800px;

            // 展示的图片
            >img {
              height: 100%;
              width: auto;
              display: block;
              margin: 0 auto;
            }
          }

          // 小图图片盒子
          .selection {
            margin-top: 10px;
            overflow: hidden;
            position: relative;

            // 左右箭头
            .el-icon-arrow-left,
            .el-icon-arrow-right {
              width: 24px;
              height: 90px;
              background-color: #000;
              opacity: .75;
              color: #fff;
              text-align: center;
              line-height: 90px;
              margin-right: 7px;
              cursor: pointer;

              &:hover {
                opacity: .5;
              }
            }

            .el-icon-arrow-right {
              float: right;
              margin-right: 0;
              // margin-left: 7px;
              // position: absolute;
              // right: 0;
            }

            .swiper {
              width: 738px;
              overflow: hidden;
              float: left;

              >ul {
                width: 1000%;
                height: 90px;
                transition: all .5s;

                >li {
                  float: left;
                  width: 116px;
                  height: 90px;
                  opacity: .5;
                  margin-right: 8px;
                  cursor: pointer;

                  &:last-child {
                    margin-right: 0;
                  }

                  &.active {
                    opacity: 1;
                  }

                  img {
                    max-width: 116px;
                    height: 100%;
                    display: block;
                    margin: 0 auto;
                  }
                }
              }
            }
          }
        }

        // 房源信息
        .info {
          width: 350px;

          .box {
            padding: 20px 0 10px 0;
            border-bottom: 1px solid #ddd;

            &.xiajia {
              height: 26px;
              background-color: #ccc;
              color: #000;
              text-align: center;
              line-height: 1;
              font-size: 16px;
            }

            // 价格
            .price {
              font-size: 36px;
              color: #e03236;
              font-weight: bold;
              float: left;
              margin-right: 10px;
            }

            // 单价
            .unit-price {
              float: left;
              margin-top: 20px;
            }

            // 房源介绍
            &.intro {
              display: flex;

              .lBox {
                flex: 1;
                text-align: center;

                .top {
                  font-weight: bold;
                  font-size: 20px;
                  color: #333;
                }

                .down {
                  color: #9B9B9B;
                  font-size: 12px;
                }
              }
            }

            // 房源介绍
            >p {
              height: 18px;
              line-height: 18px;
              margin-bottom: 15px;

              .tip1 {
                font-size: 16px;
                color: #999;
                margin-right: 10px;
              }

              .tip2 {
                font-size: 18px;
              }
            }

            // 经纪人
            .a-avatar {
              width: 57px;
              height: 76px;
              cursor: pointer;
            }

            .a-info {
              height: 76px;
              width: 273px;
              position: relative;
              padding-left: 20px;

              .a-name {
                font-size: 18px;
                line-height: 1;
                color: #333;
                cursor: pointer;
                font-weight: bold;

                &:hover {
                  color: @theme;
                }
              }

              .a-des {
                font-size: 14px;
                position: absolute;
                transform: translateY(50%);
              }

              .a-phone {
                width: 200px;
                color: @theme;
                font-size: 20px;
                font-weight: bold;
                position: absolute;
                bottom: 0;
              }
            }

          }

          .btn {
            margin-top: 20px;

            >.el-button {
              width: 100%;
              color: #fff;
            }
          }
        }
      }
    }

    .second {
      margin-bottom: 20px;

      .h-info {
        width: 800px;
        padding-top: 20px;
        border-top: 1px solid #ddd;

        .box-l {
          width: 200px;
          color: #9B9B9B;
        }

        .box-r {
          .type-l {
            margin-right: 100px;
          }

          p {
            margin-bottom: 15px;

            .tip1 {
              display: inline-block;
              width: 70px;
              font-size: 16px;
              color: #9B9B9B;
              margin-right: 30px;
            }
          }
        }
      }
    }

    .third {
      margin-bottom: 20px;

      .type {
        width: 800px;
        padding-top: 20px;
        border-top: 1px solid #ddd;

        >p {
          margin-bottom: 20px;

          .tip1 {
            color: #9B9B9B;
            margin-right: 100px;
            width: 100px;
            float: left;
          }

          .tip2 {
            display: inline-block;
            width: 600px;

            .el-tag {
              &.tag1 {
                background-color: @theme;
                color: #fff;
              }

              border: none;
              border-radius: 0;
              height: 28px;
              margin-right: 10px;
              line-height: 28px;
              background-color: #c5eff7;
              color: #049372;
            }
          }
        }
      }
    }

    .fourth {
      margin-bottom: 40px;

      >ul {
        width: 800px;
        padding-top: 20px;
        border-top: 1px solid #ddd;

        >li {
          width: 250px;
          float: left;
          margin-right: 20px;

          .cover-img {
            width: 250px;
            height: 187px;
            margin-bottom: 10px;

            img {
              width: 100%;
              height: 100%;
            }
          }

          >h5 {
            font-size: 16px;
            margin-bottom: 5px;
            color: #000;
          }
        }
      }
    }

    .fifth {
      .echarts {
        margin-bottom: 20px;

        #echart1 {
          width: 800px;
          height: 500px;
        }
      }
    }

    .sixth {
      margin-bottom: 30px;
      width: 100%;
      position: relative;

      .cover-img {
        width: 300px;
        height: 225px;

        img {
          width: 100%;
          height: 100%;
        }
      }

      .detail {
        margin-left: 40px;
        height: 225px;
        position: relative;

        .name {
          font-size: 22px;
          font-weight: bold;
          height: 22px;
          line-height: 1;
          margin-bottom: 20px;
          cursor: pointer;

          &:hover {
            color: @theme;
          }
        }

        .info {
          .left {
            margin-right: 30px;
          }

          p {
            margin-bottom: 15px;

            .tip1 {
              display: inline-block;
              width: 70px;
              font-size: 14px;
              color: #9B9B9B;
              margin-right: 20px;
            }
          }
        }

        .warn {
          position: absolute;
          bottom: 0;
          font-size: 14px;
          color: #9B9B9B;
          width: 100%;
          text-align: center;
        }
      }
    }

    .seventh {
      ul>li {
        width: 272px;
        margin-right: 37px;
        float: left;
        margin-bottom: 30px;

        &:last-child {
          margin-right: 0;
        }

        .cover-img {
          width: 272px;
          height: 204px;
          margin-bottom: 10px;

          img {
            width: 100%;
            height: 100%;
          }
        }

        h5 {
          font-size: 18px;
          color: #000;
          margin-bottom: 10px;
        }

        .price {
          color: #e03236;
          margin-right: 10px;
        }

        .area {
          color: #9B9B9B;
        }

        .type {
          color: #9B9B9B;
        }
      }
    }

    .eighth {
      margin-bottom: 30px;

      .title {
        margin-bottom: 20px;
      }

      ul>li {
        width: 550px;
        height: 100px;
        border: 1px solid #ccc;
        text-align: center;
        line-height: 100px;
        cursor: pointer;

        &:hover {
          color: @theme;
        }
      }
    }

  }

  .d-topNav {
    width: 100%;
    background-color: #000;
    position: fixed;
    top: 0;
    z-index: 100;

    ul {
      width: 1200px;
      margin: 0 auto;

      >li {
        float: left;
        width: 100px;
        height: 40px;
        color: #fff;
        text-align: center;
        line-height: 40px;
        cursor: pointer;

        &:hover {
          color: @theme;
        }

        &.active {
          color: @theme;
        }
      }
    }
  }

  .d-topAgent {
    width: 350px;
    background-color: #fff;
    position: fixed;
    // bottom: 0;
    // right: 0;
    top: 40px;
    right: 150px;

    .a-title {
      text-align: center;
      font-weight: bold;
      font-size: 16px;
      color: #333333;
      padding: 10px 0;
    }

    ul>li {
      padding: 20px 0;
      border-top: 1px solid #ddd;

      &:last-child {
        border-bottom: 1px solid #ddd;
      }

      .a-avatar {
        width: 57px;
        height: 76px;
        cursor: pointer;
      }

      .a-info {
        height: 76px;
        position: relative;
        padding-left: 20px;

        .a-name {
          font-size: 18px;
          line-height: 1;
          color: #333;
          cursor: pointer;
          font-weight: bold;

          &:hover {
            color: @theme;
          }
        }

        .a-phone {
          color: @theme;
          font-size: 20px;
          font-weight: bold;
          position: absolute;
          bottom: 0;
        }
      }
    }
  }
}